<template>
  <!-- 我加入的小组 -->
  <div class="hotGroupBox">
    <x-header :left-options="{showBack: true,backText:'我加入的小组'}" class="headerBox"></x-header>
    <div v-for="(item,index) in hotGroupList" class="groupList">
      <div class="groupList-left">
        <div class="picture">
          <img :src="item.img" />
        </div>
        <div class="grouplist-type">
          <div class="grouplist-type-title">{{item.title}}</div>
          <div class="grouplist-type-member flex">
            <img src="../assets/images/head-sm.png" mode="scaleToFill" />
            {{item.groupLeader}}
          </div>
        </div>
      </div>
      <div class="groupList-right">全部成员{{item.total}}人</div>
    </div>
  </div>
</template>

<script>
import { XHeader } from "vux";
export default {
  components: {
    XHeader
  },
  data() {
    return {
      hotGroupList: [
        {
          title: '英语讨论组',
          total: '38',
          groupLeader: '刘天然',
          img: require('../assets/images/head06.png'),
        },
        {
          title: '英语讨论组',
          total: '38',
          groupLeader: '欧阳娜娜',
          img: require('../assets/images/head06.png'),
        },
        {
          title: '英语讨论组',
          total: '38',
          groupLeader: '张浩',
          img: require('../assets/images/head06.png'),
        },
      ]
    }
  },
}
</script>

<style lang="less" scoped>
.hotGroupBox {
  // 头部导航
  /deep/.headerBox {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    .vux-header-left {
      left: 24px;
      .vux-header-back {
        color: #000;
      }
      .left-arrow:before {
        border-color: #000;
      }
    }
  }
  .groupTitle {
    padding: 20px;
    background-color: #fff;
    font: bold 30px '微软雅黑';
  }
  .groupList {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 20px 26px;
    border-bottom: 20px solid #f8f9fa;
    .groupList-left {
      display: flex;
      flex-grow: 1;
      align-items: center;
      /* justify-content: center; */
      .picture {
        width: 150px;
        height: 150px;
        img {
          width: 100%;
          height: 100%;
        }
      }

      .grouplist-type {
        margin: 0 40px;
        .grouplist-type-title {
          margin: 30px 0;
          font-size: 30px;
          font-weight: bold;
        }
        .grouplist-type-member {
          margin: 30px 0;
          color: #858585;
          font-size: 28px;
          img {
            width: 20px;
            height: 30px;
            margin-right: 20px;
          }
        }
      }
    }

    .groupList-right {
      color: #858585;
      font-size: 28px;
    }
  }
}
</style>